<template>
	<view>
			<u-button type="success" text="退出登录" @click="tui"></u-button>
	</view>
</template>
<script>
	import {logout} from "@/pages/request/index.js"
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			tui(){
				console.log(1111);
				logout().then(res=>{
					uni.clearStorageSync()
					uni.showToast({
						title:"退出成功"
					})
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
